package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.system.entity.AbdulBaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
@TableName("membership_voucher")
@ApiModel("会员管理-代金券")
public class MembershipVoucher extends AbdulBaseEntity {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("会员ID(关联会员表)")
    private String memberId;

    @ApiModelProperty("会员手机号")
    private String memberPhone;

    @ApiModelProperty("生效时间")
    private Date effectiveTime;

    @ApiModelProperty("状态（1-正常/2-已使用，3-已过期，4-已作废）")
    private Integer status;

    @ApiModelProperty("卡号")
    private String cardNumber;

    @ApiModelProperty("会员代金卷名称")
    private String cardName;

    @ApiModelProperty("过期时间 （若为空 则代表不过期）")
    private Date expirationDate;

    @ApiModelProperty("发放来源")
    private String source;

    @ApiModelProperty("支付金额")
    private Double payMoney;

}
